package 多线程;

public class Main
{
    public static void main(String[] args)
    {
        System.out.println("main start...");
        Thread t = new Thread(){
            public void run(){
                System.out.println("thread run...");
                try{
                    Thread.sleep(1);
                }
                catch (InterruptedException e){}

                System.out.println("thread end...");
            }

        };
        t.start();
        try{
            Thread.sleep(2);
        }
        catch (InterruptedException e){}
        System.out.println("main end...");

    }
}
